﻿using System;
using System.Globalization;
using System.Windows.Data;
using System.Windows.Media;

namespace LFSRecord2.View.Converters
{
    public class PropertyLabelSelectionBackgroundBrushConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if ((bool)value == true)
                return new SolidColorBrush(Color.FromArgb(255, 200, 200, 200));
            else
                return new SolidColorBrush(Colors.Transparent);
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return null;
        }
    }
}
